<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>animation</title>
    <style>
      .rocket {
        width: 149px;
        height: 250px;
        border: 1px solid black;
        background-image: url('./rocket.png');
      }
      .rocket:hover {
        animation: fly 0.7s steps(5) infinite;
      }
      @keyframes fly {
        from {
          background-position: -148px 0;
        }
        to {
          background-position: -892px 0;
        }
      }
    </style>
  </head>
  <body>
    <div class="rocket"></div>
  </body>
</html>
